package com.xiaodimall.backsys.service;

import com.xiaodimall.backsys.common.CascadeSelectionResult;
import com.xiaodimall.backsys.common.JsonResult;
import com.xiaodimall.backsys.pojo.GoodsCategory;

import java.util.List;

/**
 * @Author: CJJ
 * @Date: Created in 2022/11/27 19:35
 * @Description:
 */
public interface GoodsCategoryService {

    List<CascadeSelectionResult> getSelectionData();

    JsonResult getGoodsCategoryByLevel(Integer goodsCategoryLevel);

    JsonResult addGoodsCategory(GoodsCategory goodsCategory);

    JsonResult deleteGoodsCategoryById(Integer categoryId);

    JsonResult updateById(Integer categoryId, String categoryName, Integer categoryRank);
}
